import ajax from '@/utils/request'
import { concatUrl } from '@/utils'

// 预约时间列表
export function getAppointmentTime(data = {}, fields: string | object = { fields: '*' }) {
  return ajax({
    url: concatUrl('/v1/order/appointment-time/index2', fields),
    data
  })
}

// 预约时间摘要列表
export function getSummaryIndex(data = {}, fields: string | object = { fields: '*' }) {
  return ajax({
    url: concatUrl('/v1/order/appointment-time/summary-index', fields),
    data
  })
}
